home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
pdox35sc.zip
/
PICTURE.SC
< prev
next >
Wrap
Text File
|
1991-06-10
|
4KB
|
70 lines
; ***************************************************************************************
; GENERIC UTILITY TO SET PICTURE FORMATS IN ANY FIELD
; Copyright 1991 Virginia B. Sauer All Rights Reserved
; This program may be copied/modified without charge provided both that this
; copyright notice is included without change, and that any accompanying
; documentation includes the notice "Portions of code (c) Copyright 1991,
; Virginia B. Sauer"
; ***************************************************************************************
; ╔═════════════════════════════════════════════════════════════════════════════╗
; ║ TO EXECUTE ║
; ╟─────────────────────────────────────────────────────────────────────────────╫
; ║ ║
; ║ To be able to invoke this during any edit session: ║
; ║ ║
; ║ (1) Add the following line to your init script: ║
; ║ SetKey -25 Play "Picture" ║
; ║ ║
; ║ (2) Whenever you want to invoke this, move to the table and field ║
; ║ desired and press Alt-P (i. e., hold down the Alt key and press ║
; ║ the P key). ║
; ║ ║
; ╟─────────────────────────────────────────────────────────────────────────────╫
; ║ ║
; ║ Should you prefer not to place this in your init script: ║
; ║ ║
; ║ Whenever you want to invoke this, move to the table and field you ║
; ║ want to change. Press Alt-F10 to invoke the PAL menu, select ║
; ║ miniscript, and type "Play Picture". ║
; ║ ║
; ╚═════════════════════════════════════════════════════════════════════════════╝
; ───────────────────────────────────────────────────────────────────────────────────────
; *************** I M P O R T A N T N O T E ***************
; This proc is usually assigned to a hot key.
; Since it is a development tool used for developing all applications, it is customarily
; written to a separate library, such as ToolBox.
; The init script assigning the hot keys is then placed in the developer's private
; directory.
; ───────────────────────────────────────────────────────────────────────────────────────
Proc Picture()
Private UserChoice
If SysMode() <> "Edit" and SysMode() <> "Data Entry"
Then EditKey
EndIf
Wait Record
Prompt Format("W80,AC","Use the arrow keys to move to the field for which you want to set a"),
Format("W80,AC","picture validity check. Press the <Enter> key to select that field.")
Until "Enter", "Esc"
ShowMenu
"!*[{ ,-[ ],.[ ],;,[ ]}!,@]" : "Proper Case",
"*!" : "All Upper Case",
"(###) ###-####" : "Telephone Number",
"#####[-####]" : "Zip Code",
"*#" : "All Numbers",
"##:##" : "Time",
"{Yes,No}" : "Yes, No",
"Clear" : "Remove Validity Check",
"Quit" : "Do Not Set Picture"
To UserChoice
Menu {ValCheck} {Define} Enter {Picture} CtrlBackSpace TypeIn UserChoice Enter Do_It!
Editkey
EndProc
Picture()